package com.itheima.sh.a_HomeWork1;
//经理类
public class Manager extends Employee{
  //成员变量
   private String clerk;
//空参
    public Manager() {
    }
//满参
//    public Manager(String clerk) {
//        this.clerk = clerk;
//    }
//set、get方法
    public String getClerk() {
        return clerk;
    }

    public void setClerk(String clerk) {
        this.clerk = clerk;
    }

    public Manager(String workId, String name, String dept, String clerk) {
        super(workId, name, dept);
        this.clerk = clerk;
    }




    @Override
    public void showMsg() {
        System.out.println("他的职员是"+getClerk());
    }
}
